<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class Article extends Model
{
    //属于关系
    public function username(){
        // 关联模型
        return $this->belongsTo(User::class,'user_id');
    }
}
